package com.hsgene.logistics.service.api;

import com.hsgene.common.util.result.ApiResult;
import com.hsgene.generator.dto.GeneratorDto;
import com.hsgene.logistics.service.api.impl.GeneratorServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: wangxuefeng@hsgene.com
 * @Description:
 * @Date: Created in 17:11 2018/7/26
 * @Modified By:
 */
@FeignClient(value = "ms-mod-generator", path = "/v1.0/genetic/testing/generator", fallback = GeneratorServiceImpl.class)
public interface GeneratorService {

    /**
     * 调用ms-mod-generator获取生成序列
     *
     * @param type   类型
     * @param prefix 前缀
     * @return
     */
    @GetMapping
    ApiResult<GeneratorDto> getGenerator(@RequestParam("type") String type, @RequestParam("prefix") String prefix);
}
